package com.cictec.middleware.api.gps;

import java.util.Date;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cictec.middleware.commons.utils.Result;
import com.cictec.middleware.core.pojo.MiddlewarePosition;

/**
 * 中间件位置分析服务
 * 
 * @author Administrator
 *
 */
public interface MiddlewareGPSService {

	/**
	 * 【GPS位置信息】处理接口调用
	 * 
	 * @param position
	 * @return
	 */
	@RequestMapping(value = "/gps/positionUpload")
	public Result positionUpload(MiddlewarePosition position);

	/**
	 * 【进出站信息】处理接口调用
	 * 
	 * @param position
	 * @return
	 */
	@RequestMapping(value = "/gps/enterOutUpload")
	public Result enterOutUpload(MiddlewarePosition position);

	/**
	 * 更新司机签到信息
	 * 
	 * @param busDriverSignIn
	 * @return
	 */
	@RequestMapping(value = "/gps/busDriver/refreshDriverSignIn", method=RequestMethod.POST)
	public Result refreshBusDriver(@RequestParam("devCode") String devCode,
			@RequestParam("icCardNumber") String icCardNumber, @RequestParam("driverSignTime") Date driverSignTime);

}
